package cn.anecansaitin.industrialization_expansion.common.item;

import cn.anecansaitin.industrialization_expansion.ModConstant;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TranslationTextComponent;
import net.minecraft.world.World;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.List;

public class TestItem extends Item {
    /*
    * todo
    *  设计思路转变：
    *   配方改为有序配方并能设定模块渲染顺序*/
    public TestItem() {
        super(new Properties().tab(ModConstant.TABLE));
    }

    @Override
    public @Nonnull ActionResult<ItemStack> use(@Nonnull World pLevel, @Nonnull PlayerEntity pPlayer, @Nonnull Hand pHand) {
        return super.use(pLevel, pPlayer, pHand);
    }

    @Override
    public void appendHoverText(@Nonnull ItemStack pStack, @Nullable World pLevel, List<ITextComponent> pTooltip, @Nonnull ITooltipFlag pFlag) {
        TranslationTextComponent component = new TranslationTextComponent("this.is.test", 11, 22, 33);
        pTooltip.add(component);
    }
}
